/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-12-29 10:54:48
 * @LastEditors: turingchang
 * @LastEditTime: 2020-12-29 10:56:27
 */


module.exports = app => {
    const { router, controller } = app;
    const jsonp = app.jsonp();
    const namespace = `/api/${app.config.xsoaHandler.localServerName}/log`;
    const homeRouter = router.namespace(namespace);
    homeRouter.get('/', jsonp,controller.push.ttbPushLog.list);
    homeRouter.get('/info', jsonp,controller.push.ttbPushLog.info);
    homeRouter.post('/', jsonp,controller.push.ttbPushLog.add);
} 